//
//  LLTextView.m
//  Demo
//
//  Created by LG on 2018/12/4.
//  Copyright © 2018 LG. All rights reserved.
//

#import "LLTextView.h"

@interface LLTextView ()

@property (nonatomic,copy)NSMutableString* innerText;

@end

@implementation LLTextView

//#pragma mark -- UITextInput
///* Methods for manipulating text. */
//- (nullable NSString *)textInRange:(UITextRange *)range
//{
//    return [self.innerText substringWithRange:NSMakeRange(range.start, range.end)];
//}
//
//- (void)replaceRange:(UITextRange *)range withText:(NSString *)text
//{
//
//}
//
//- (void)setMarkedText:(nullable NSString *)markedText selectedRange:(NSRange)selectedRange
//{
//
//}
//
//- (void)unmarkText
//{
//
//}
//
///* The end and beginning of the the text document. */
////@property (nonatomic, readonly) UITextPosition *beginningOfDocument;
////@property (nonatomic, readonly) UITextPosition *endOfDocument;
//
///* Methods for creating ranges and positions. */
//- (nullable UITextRange *)textRangeFromPosition:(UITextPosition *)fromPosition toPosition:(UITextPosition *)toPosition
//{
//
//}
//
//- (nullable UITextPosition *)positionFromPosition:(UITextPosition *)position offset:(NSInteger)offset
//{
//
//}
//
//- (nullable UITextPosition *)positionFromPosition:(UITextPosition *)position inDirection:(UITextLayoutDirection)direction offset:(NSInteger)offset
//{
//
//}
//
///* Simple evaluation of positions */
//- (NSComparisonResult)comparePosition:(UITextPosition *)position toPosition:(UITextPosition *)other
//{
//
//}
//
//- (NSInteger)offsetFromPosition:(UITextPosition *)from toPosition:(UITextPosition *)toPosition
//{
//
//}
//
///* A system-provied input delegate is assigned when the system is interested in input changes. */
////@property (nullable, nonatomic, weak) id <UITextInputDelegate> inputDelegate;
//
///* A tokenizer must be provided to inform the text input system about text units of varying granularity. */
////@property (nonatomic, readonly) id <UITextInputTokenizer> tokenizer;
//
///* Layout questions. */
//- (nullable UITextPosition *)positionWithinRange:(UITextRange *)range farthestInDirection:(UITextLayoutDirection)direction
//{
//
//}
//
//- (nullable UITextRange *)characterRangeByExtendingPosition:(UITextPosition *)position inDirection:(UITextLayoutDirection)direction
//{
//
//}
//
///* Writing direction */
//- (UITextWritingDirection)baseWritingDirectionForPosition:(UITextPosition *)position inDirection:(UITextStorageDirection)direction
//{
//
//}
//
//- (void)setBaseWritingDirection:(UITextWritingDirection)writingDirection forRange:(UITextRange *)range
//{
//
//}
//
///* Geometry used to provide, for example, a correction rect. */
//- (CGRect)firstRectForRange:(UITextRange *)range
//{
//
//}
//
//- (CGRect)caretRectForPosition:(UITextPosition *)position
//{
//
//}
//
//- (NSArray<UITextSelectionRect *> *)selectionRectsForRange:(UITextRange *)range     // Returns an array of UITextSelectionRects
//{
//
//}
//
///* Hit testing. */
//- (nullable UITextPosition *)closestPositionToPoint:(CGPoint)point
//{
//
//}
//
//- (nullable UITextPosition *)closestPositionToPoint:(CGPoint)point withinRange:(UITextRange *)range
//{
//
//}
//
//- (nullable UITextRange *)characterRangeAtPoint:(CGPoint)point
//{
//
//}

@end
